<?php

namespace Database\Seeders;

use App\Models\Category;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    public function run()
    {
        Category::create(['parent_id' => 0, 'name' => '个体护化', 'name_mini' => '个护']);
        Category::create(['parent_id' => 0, 'name' => '生活用品', 'name_mini' => '生活']);
        Category::create(['parent_id' => 0, 'name' => '食品饮料', 'name_mini' => '食饮']);
        
        Category::create(['parent_id' => 1, 'name' => '彩妆', 'name_mini' => '彩妆']);
        Category::create(['parent_id' => 1, 'name' => '口腔', 'name_mini' => '口腔']);
        
        Category::create(['parent_id' => 2, 'name' => '洗护', 'name_mini' => '洗护']);
        Category::create(['parent_id' => 2, 'name' => '厨房', 'name_mini' => '厨房']);
        
        Category::create(['parent_id' => 3, 'name' => '水果', 'name_mini' => '水果']);
        Category::create(['parent_id' => 3, 'name' => '饮料', 'name_mini' => '饮料']);
    }
}
